Skip to main content
Version: 11.x

Type alias: WithTRPCSSROptions<TRouter>

WithTRPCSSROptions: <TRouter> WithTRPCOptions< TRouter > & {responseMeta: (opts) => ResponseMeta; ssr: true | (opts) => boolean | Promise< boolean >; ssrPrepass: TRPCPrepassHelper;}

WithTRPCSSROptions.responseMeta

optional responseMeta: (opts) => ResponseMeta

Parameters

ParameterType
optsobject
opts.clientErrorsTRPCClientError< TRouter >[]
opts.ctxNextPageContext

Returns

ResponseMeta

WithTRPCSSROptions.ssr

ssr: true | (opts) => boolean | Promise< boolean >

If you enable this, you also need to add a ssrPrepass-prop

https://trpc.io/docs/client/nextjs/ssr

WithTRPCSSROptions.ssrPrepass

ssrPrepass: TRPCPrepassHelper

use import { ssrPrepass } from '@trpc/next/ssrPrepass'

https://trpc.io/docs/client/nextjs/ssr

Type parameters

Parameter
TRouter extends AnyRouter

Source

withTRPC.tsx:48


Generated using TypeDoc and typedoc-plugin-markdown